package com.kefu.boss.mapper;

import com.kefu.boss.model.BossRole;
import com.kefu.boss.model.BossUserRole;
import com.kefu.common.mybatis.KefuMapper;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface BossUserRoleMapper extends KefuMapper<BossUserRole> {
    void batchAdd(List<BossUserRole> userRoles);
    void deleteByUserId(String userId);
    @Delete("delete from boss_user_role where role_id = #{arg0} ")
    void deleteByRoleId(String roleId);

    List<BossRole> getRoleList(String userId);
}
